package com.example.library.service;

import com.example.library.entity.Book;
import java.util.List;
import java.util.Map;

public interface BookService {

    Map<String, Object> getBooks(int page, int size);


    Book getBookById(Long id);


    List<Book> searchBooks(String keyword);


    Book addBook(Book book);


    Book updateBook(Long id, Book book);


    void deleteBook(Long id);
}